<%@ include file="/taglibs.jsp" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title><decorator:title /></title>
    <link href="${ctx}/css/style.css" rel="stylesheet" type="text/css" />
    <script src="${ctx}/scripts/jquery-1.7.js" type="text/javascript"></script>
    <script type="text/javascript">
	    function menuRedirect(menuId){
	    	$.ajax({
				url:'${ctx}/indexAction!queryAccess?menuId=' + menuId,
				type:'get',
				timeout:3000,
				dataType:"text",
				success: function(data){
					if(data == '0'){
						alert("您没有访问该菜单的权限!");
						return false;
					}else{
						if(menuId == 1){
							window.location.href = "${ctx}/indexAction";
						}else if(menuId == 2){
							window.location.href = "${ctx}/UserAction_personCenter";
						}
						return false;
					}
				}
			});
	    }
	    
	    $(document).ready(function() {
			$(".list-table tr:even").css("background", "#fdf3bf");
			$(".list-table tr:odd").css("background", "#ffffff"); 
			$(".list-table tr").bind("mouseover", function(){
				var rowNum = this.rowIndex;
				if(rowNum == 0)
					return;
				
				$(this).css("background", "#ffab34");
				$(this).css("cursor", "pointer");
				$(this).css("color", "white");
			});
			$(".list-table tr").bind("mouseout", function(){
				var rowNum = this.rowIndex;
				if(rowNum == 0)
					return;
				if(rowNum % 2 == 0){
					$(this).css("background", "#fdf3bf"); 
				}else{
					$(this).css("background", "#ffffff");
				}
				$(this).css('color', 'black');
			});
			
			var pathname = window.location.pathname.substring(1);
			var pathnameArr = pathname.split('_');
			if(pathnameArr[0] == 'AdminAction'){
				var arr = ['AdminAction_adminInfo','AdminAction_save_adminInfo', 'AdminAction_modifyAdminPassword', 'AdminAction_personStudyStatistics', 'AdminAction_branchStudyStatistics', 'AdminAction_partyStudyStatistics','AdminAction_save_modifyAdminPassword','AdminAction_downloadMembers'];
				if(jQuery.inArray(pathname, arr) == -1){
					$('#UserManageAction').css('color', 'yellow');
				}else{
					$('#AdminAction').css('color', 'yellow');
				}
			}else if(pathnameArr[0] == 'Admin'){
				if(pathnameArr[1] == 'MyBranchAction' || pathnameArr[1] == 'branchManageAction' ){
					$('#Admin_branchManageAction').css('color', 'yellow');
				}else{
					$('#Admin_PartyNewsAction').css('color', 'yellow');
				}
				
			}else if(pathnameArr[0] == 'AdminLearnCenterAction'){
				$('#AdminLearnCenterAction').css('color', 'yellow');
			}else if(pathnameArr[0] == 'AdminVideoAction'){
				$('#AdminVideoAction').css('color', 'yellow');
			}else if(pathnameArr[0] == 'AdminNoticeAction'){
				$('#AdminNoticeAction').css('color', 'yellow');
			}
			
			
			
// 	        var pathname = window.location.pathname.substring(1);
// 			alert();
			 
// 			var arr = [ 4, "Pete", 8, "John" ];
// 			var $spans = $("span");
// 			alert(jQuery.inArray("John", arr));
// 			alert(jQuery.inArray(4, arr));
// 			alert(jQuery.inArray("Karl", arr));
// 			alert(jQuery.inArray("Pete", arr, 2));
			

		});
    </script>
    <decorator:head/>
</head>
<body>
<div id="site_banner_common"  style="height:140px; background-image:url('../styles/site_banner_bg2.png'); background-repeat:no-repeat; ">&nbsp;</div>
<div id="site_menu">
    <div  class="menuItem" style="width:113px;"><a id="AdminAction" href="${ctx}/AdminAction_adminPersonCenter">个人中心</a></div>
    <div class="menuSperator">&nbsp;</div>
    <div class="menuItem" style="width:113px;"><a id="UserManageAction" href="${ctx}/AdminAction_manageUser">用户管理</a></div>
    <div class="menuSperator">&nbsp;</div>
    <div class="menuItem" style="width:113px;"><a id="Admin_branchManageAction" href="${ctx}/Admin_branchManageAction_manageBranch" >党组织管理</a></div>
    <div class="menuSperator">&nbsp;</div>
    <div class="menuItem" style="width:113px;"><a id="Admin_PartyNewsAction" href="${ctx}/Admin_PartyNewsAction_managePartyNews">党建动态管理</a></div>
    <div class="menuSperator">&nbsp;</div>
    <div class="menuItem" style="width:113px;"><a id="AdminLearnCenterAction" href="${ctx}/AdminLearnCenterAction_adminLearnCenter">学习园地管理</a></div>
    <div class="menuSperator">&nbsp;</div>
    <div class="menuItem" style="width:113px;"><a id="AdminVideoAction" href="${ctx}/AdminVideoAction_view">影视精品管理</a></div>
    <div class="menuSperator">&nbsp;</div>
    <div class="menuItem" style="width:113px;"><a id="AdminNoticeAction" href="${ctx}/AdminNoticeAction_adminNotice">学习公告管理</a></div>
    <div class="menuSperator">&nbsp;</div>
    <div class="menuItemTime" style="text-align:center;">
    <script language="JavaScript" type="text/javascript"> 
    <!--
           var y = new Date();
           var gy = y.getYear();
           var dName = new Array(" (星期天)", " (星期一)", " (星期二)", " (星期三)", " (星期四)", " (星期五)", " (星期六)");
           var mName = new Array("1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月");
           document.write(y.getFullYear() + "年" + mName[y.getMonth()] + y.getDate() + "日" + dName[y.getDay()]);
    //--> 
    </script>
    </div>
</div>
<decorator:body/>
 <div id="footer">
     <div style="height:20px;">&nbsp;</div>
  <div style="text-align:center; height:18px;">
     <a href="${ctx }/pages/common/index/website_sm.html" target="_blank">网站声明</a>
      &nbsp;|&nbsp;
      <a href="${ctx }/pages/common/index/about_us.html" target="_blank">关于我们</a>
      &nbsp;|&nbsp;
      <a href="mailto:party@bupt.edu.cn">联系我们</a>
  </div>
  <div style="height:5px;">&nbsp;</div>
  <div style="text-align:center;">Copyright &copy; 2011 All rights reserved.&nbsp;&nbsp;&nbsp;&nbsp;版权所有：北京邮电大学党委组织部</div>
</div>
</body>
</html>